﻿<controls:ChildWindow x:Class="Songhay.Silverlight.Mvvm.Views.ErrorChildWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
    Cursor="Hand"
    Title="Error Message"
    Width="512" Height="300">

    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>

        <TextBlock x:Name="ErrorSubTitle"
            Foreground="Red"
            Grid.Row="0"
            Margin="0" 
            Text="An unknown error was encountered."
            />

        <StackPanel Grid.Row="2" Margin="0,6,0,0">

            <TextBlock
                FontWeight="Bold"
                TextWrapping="Wrap"
                Margin="0,0,0,2"
                Text="Error details:"
                />
            <TextBox x:Name="ErrorTextBox"
                Height="190"
                IsReadOnly="True"
                TextWrapping="Wrap"
                VerticalScrollBarVisibility="Auto"
                />

        </StackPanel>

        <Button x:Name="OKButton"
            Grid.Row="3"
            Content="OK"
            HorizontalAlignment="Right"
            Margin="0,10,0,0" 
            TabIndex="0"
            Width="75" Height="23"
            />

    </Grid>

</controls:ChildWindow>